<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="__PUBLIC__/Css/manager.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="__PUBLIC__/Js/jquery-1.7.2.min.js"></script>

</head>
<body>
<h2>角色修改 <a href="__URL__/index" id="backBTN" >[取消返回]</a></h2>

<form action="__APP__/Role/update" method="post">
    <input type="hidden" value="{$role['id']}" name="id">
    <table id="user_Add">
        <tr>
            <th class="tRight">角色名:</th>
            <td>
                <input type="text" name="name" value="{$role['name']}">
            </td>
        </tr>
        <tr>
            <th class="tRight">父角色:</th>
            <td>
                <select name="pid">
                    <option  value="0">无父级角色</option>
                    <volist name="list" id="vo">
                        <if condition="$vo['id'] eq $role['pid']">
                            <option selected value="{$vo['id']}">{$vo["name"]}</option>
                            <else/>
                            <option  value="{$vo['id']}">{$vo["name"]}</option>
                        </if>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <th class="tRight">角色状态:</th>
            <td>
                <select name="status">
                    <if condition="$role['status'] eq 1">
                        <option selected value="1">有效</option>
                        <option value="0">无效</option>
                        <elseif condition="$role['status'] eq 0"/>
                        <option  value="1">有效</option>
                        <option selected value="0">无效</option>
                    </if>
                </select>
            </td>
        </tr>
        <tr>
            <th class="tRight">备注:</th>
            <td>
                <textarea rows="5" cols="90" name="remark" >{$role['remark']}</textarea>
            </td>
        </tr>
        <tr>
			<th class="tRight">&nbsp;</th>
            <td>
                <input type="submit" value="确认更新">
            </td>
        </tr>
    </table>
</form>
</body>
</html>